Xbasic

A5_DATABASECOMPACT Function

Syntax

V a5_DatabaseCompact([L silent [,C title [,C message [,C completed_title [,C completed_message ]]]]])

Arguments

silentLogical

Default = .T. Determines whether the Title and Message are displayed during the compact, .T. = No messages, .F. = Alpha Anywhere displays the Title and Message during the compact operation.

titleCharacter

Default = "Notice". The title of the dialog box.

messageCharacter

Default = "Please wait". Alpha Anywhere is compacting the Database." The message that is displayed during the compact.

completed_titleCharacter

Default = "Notice". The title of the dialog box after the compact.

completed_messageCharacter

Default = "Database Compact completed." The message that is displayed after the compact.

Description

The A5_DATABASECOMPACT() function compacts a database and rebuilds indexes. This is the same as the File > Database Compact command. .

Example

a5_databasecompact(.F.)

See Also